<?php $this->load->view('layout/adminHeader'); ?>
    
    <div id="mainContent" class="floatFix">
    	<?php $this->load->view('layout/adminToursSubmenu'); ?>
        
        <div class="lCol">
           	
            <?php $this->load->view('layout/flashdata'); ?>
            
            <h2>Edit Tour Types</h2>
            
            <table>
            	<thead>
                    <tr>
                      	<th>Tour Name</th>
                        <th>Tour Code</th>
                        <th>No. of Nights</th>
                        <th></th>
                    </tr>
                </thead>
                
                <tbody>
                	<?php for ($i = 0; $i < count($tours); $i++) { ?>
                    <tr>
                        <td><a href="<?php echo site_url('tourtypes/show/' . $tours[$i]['id']); ?>"><?php echo $tours[$i]['tour_name']; ?></a></td>
                        <td><?php echo $tours[$i]['tour_code']; ?></td>
                        <td><?php echo $tours[$i]['tour_nights']; ?></td>
                        <td><a href="<?php echo site_url('tourtypes/update/' . $tours[$i]['id']); ?>">Edit</a></td>
                    </tr>
                    <?php } ?>
                   
                </tbody>
            </table>
            
        </div>
        
        <div class="rCol">
        	<h2>Sidebar</h2>
        </div>
        
        
    	
    </div>
    
<?php $this->load->view('layout/adminFooter'); ?>